import Layout from '../views/layout/Layout'

const _import = require('./_import_' + process.env.NODE_ENV);

export default {
  path: '/balance',
  component: Layout,
  name: 'balance',
  meta: {title: '财务管理', icon: 'icon', roles: [1, 4]},
  children: [
    {
      path: 'list',
      component: _import('balance/list/index'),
      name: 'balanceList',
      meta: {title: '对账出账管理', icon: 'icon'},
    },
    {
      path: 'detail/:type/:id',
      component: _import('balance/detail/index'),
      name: 'balanceDetail',
      meta: {title: '对账出账详情', icon: 'icon', index: '/balance/list'},
      hidden: true,
      props: true
    },
    {
      path: 'order/list/:id',
      component: _import('balance/order/list/index'),
      name: 'balanceOrderList',
      meta: {title: '查看订单', icon: 'icon', index: '/balance/list'},
      hidden: true,
      props: true
    }/*,
    {
      path: 'refund/list/:id',
      component: _import('balance/refund/list/index'),
      name: 'balanceRefundList',
      meta: {title: '退单详情', icon: 'icon', index: '/balance/list'},
      hidden: true,
      props: true
    }*/
  ]
}
